<template>
  <div id="#app">
    <router-view></router-view>
    <TopBar v-if="isShowNav"></TopBar>
  </div>
</template>

<script setup>
import TopBar from './components/TopBar.vue';
import { useRoute } from 'vue-router';
import { watch, ref } from 'vue'
let route = useRoute();
let isShowNav = ref(false);
watch(route, (newValue) => {
  isShowNav.value = newValue.meta.isShowNav;
}, { immediate: true })
</script>